<template>
  <transition name="fade">
    <template v-if="dialogVisiable">
      <div class="expressData">
        <i class="el-icon-close closeIcon" @click="closeDialog"></i>
        <div class="item" v-for="(item, index) in propsList" :key="index">
          {{ item.id }} -- {{ item.name }}
          <slot name="list" v-bind="item.systemData"></slot>
        </div>
      </div>
    </template>
  </transition>
</template>
<script>
export default {
  name: "",
  data() {
    return {};
  },
  props: ["propsList", "dialogVisiable"],
  created() {},
  components: {},
  computed: {},
  methods: {
    closeDialog() {
      this.$emit("update:dialogVisiable", false);
    },
  },
};
</script>
<style lang="less" scoped>
.fade-enter,
.fade-leave-to {
  opacity: 0;
}
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.5s ease;
}
.expressData {
  width: 20%;
  height: 100px;
  overflow: auto;
  position: relative;
  border: 1px soild gray;
  box-shadow: 0 0 5px #d5e1e1;
  .closeIcon {
    font-size: 26px;
    position: absolute;
    right: 5px;
    top: 1px;
    cursor: pointer;
  }
}
</style>